<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 2016/11/3
 * Time: 10:38
 * Project name: PHPTEST
 * File name: 02.php
 * @copyright Copyright (c) 2016 ZRX Software LLC
 * @license https://github.com/zhangrxiang
 * @since 1.0.0
 */
//ob_start();
ob_start('getContent');
$rand = rand(1, 100);
echo $rand;
echo "<br>";
$mt_rand = mt_rand(1, 100);
echo $mt_rand;
ob_end_flush();
//ob_clean();
//ob_flush();
//flush();
function getContent($buffer){
//    echo 'start...';
    var_dump($buffer);
}